package beans;

/**********************************************************************
*
* Filename: Team_Bean.java
*
* File Description:
* Bean to carry information about an individual team
* Stores information from the database
*
* Author:
* @author Tim Schmalz
* Date Created:
*  Nov 4, 2009
*
**********************************************************************/
public class Team_Bean implements java.io.Serializable
{
    private static final long serialVersionUID = 5676499000912990610L;
    private int teamId;
    private String teamName;

    /**
     * Builds a new team bean
     *
     * @param teamId - Id of the team
     * @param teamName - Name of the team
     */
    public Team_Bean(int teamId, String teamName)
    {
        this.teamId = teamId;
        this.teamName = teamName;
    }

    /**
     * Returns a string representation of the bean (Team's name)
     *
     */
    public String toString()
    {
        return teamName;
    }

    //Generated Setters and Getters
    public int getTeamId()
    {
        return teamId;
    }
    
    public String getTeamName()
    {
        return teamName;
    }

    public void setTeamId(int newTeamId)
    {
        teamId = newTeamId;
    }

    public void setTeamName(String newTeamName)
    {
        teamName = newTeamName;
    }
}
